<div class="tab-box">
    <ul>
        <li class="active">审批列表</li>
    </ul>
</div>

<div class="section-search">
    <span class="line-block">
        <ui-select ng-model="params.loan_type" ng-init="params.loan_type=-1">
            <ui-option value="-1">贷款方式</ui-option>
            <ui-option value="1">车贷</ui-option>
            <ui-option value="2">房贷</ui-option>
            <ui-option value="3">信贷</ui-option>
        </ui-select>
    </span>
    <span class="line-block filed">
        <ui-select ng-model="params.type" error-tis="err.type" ng-init="params.type=-1">
            <ui-option value="-1">选择字段</ui-option>
            <ui-option value="1">借款编号</ui-option>
            <ui-option value="2">客户姓名</ui-option>
            <ui-option value="3">身份证</ui-option>
            <ui-option value="4">电话号码</ui-option>
            <ui-option value="5">业务员</ui-option>
        </ui-select>
    </span>
    <span class="line-block" style="width: 220px;">
        <input type="text" class="form-control" placeholder="请先选择左侧要搜索的字段" ng-model="params.keyword" />
    </span>
    <span class="line-block" ng-click="searchHandle()">
        <button class="btn btn-success search-btn"><em class="glyphicon glyphicon-search"></em></button>
    </span>
</div>
<div class="dataList">
    <table class="table">
        <thead>
        <tr>
            <th width="70">
                <label><input ng-disabled="dataList.length<1" class="ver-top" type="checkbox" ng-checked="allCheck" ng-click="$_fn.ch_id_all($event,'ch_id')">全选</label>
            </th>
            <th width="120">操作</th>
            <th>订单状态</th>
            <th>订单编号</th>
            <th>贷款产品</th>
            <th>借款人</th>
            <th>申请金额</th>
            <th>申请期限</th>
            <th>填单人员</th>
            <th>当前审批人员</th>
            <th>创单时间</th>
            
        </tr>
        </thead>
        <tbody>
          <tr ng-if="dataList.length<1" class="_loading">
            <td colspan="16">
                <div class="no_data">暂时找不到数据</div>
            </td>
          </tr>
          <tr ng-repeat="(i,item) in dataList track by $index" ng-click="$_fn.tabClick($event)">
            <td>
                <input type="checkbox" name="ch_id" value="{{item.id}}">
            </td>
            <td>
              <dropdown placeholder="请选择" ng-click="$event.stopPropagation();">
                <li ng-repeat="(i,items) in subMenu track by $index" ng-if="items.state==0 || state==items.state" ng-click="operation(items.path, {loan_number:item.loan_number,pid:item.pid,at_name:item.at_name,interest:item.interest,oid:item.id,apply_money:item.apply_money,Table:'t_order'})">{{items.name}}</li>
              </dropdown>
            </td>
            <td>{{item.s_id==2?'审批中':'审批中'}}</td>
            <td>{{item.loan_number}}</td>
            <td>{{item.loan_type==1?'车贷':item.loan_type==2?'房贷':item.loan_type==3?'信贷':''}}</td>
            <td>{{item.personal_name+'、'+item.minor_name}}</td>
            <td>{{item.apply_money | toRMB}}</td>
            <td>{{item.at_name}}</td>
            <td>{{item.admin_name}}</td>
            <td>{{item.assessing_officer_name}}</td>
            <td>{{item.found_time}}</td>
          </tr>
        </tbody>
    </table>
</div>
<div class="page" ng-if="dataList.length>0">
    <div class="operation">
        <label><input type="checkbox" ng-checked="allCheck" ng-click="$_fn.ch_id_all($event,'ch_id')">全选</label>
        <!-- <dropdown placeholder="批量操作">
            <li>批量作废</li>
        </dropdown> -->
        <dropdown placeholder="批量操作" ng-click="$event.stopPropagation();">
            <li ng-repeat="(i,items) in subMenu track by $index" ng-if="items.state==-1" ng-click="operation(items.path, {batchOper:'true'})">{{items.name}}</li>
        </dropdown>
    </div>
    <pages total="{{page.total}}" current="page.current" page-size="{{page.pageSize}}"></pages>
</div>